package com.ebraga.trackerclub.android.manager.api;


import java.util.List;

import com.ebraga.trackerclub.android.dao.entity.RankingAndroid;
import com.ebraga.trackerclub.android.exception.BackofficeDBConnectionException;
import com.ebraga.trackerclub.android.exception.manager.BackofficeIllegalArgumentManagerException;
import com.ebraga.trackerclub.android.exception.manager.BackofficeInvalidSessionManagerException;
import com.ebraga.trackerclub.android.exception.manager.BackofficeManagerException;

public interface RankingManager {
	
	/**
	 * Insert ranking in the local database android
	 * 
	 * @param RankingAndroid
	 */
	void insert(RankingAndroid ranking) throws BackofficeIllegalArgumentManagerException , 
		BackofficeDBConnectionException , BackofficeInvalidSessionManagerException , BackofficeManagerException;	
	
	/**
	 * Return ranking from local database android.
	 * 
	 */
	List<RankingAndroid> retrieveRanking() throws BackofficeIllegalArgumentManagerException , 
	BackofficeDBConnectionException , BackofficeInvalidSessionManagerException , BackofficeManagerException;	
	
	/**
	 * Delete all data
	 * 

	 * @throws BackofficeIllegalArgumentManagerException
	 * @throws BackofficeDBConnectionException
	 * @throws BackofficeManagerException
	 */
	void deleteAllLines() 
			throws BackofficeIllegalArgumentManagerException,
			BackofficeDBConnectionException,
			BackofficeManagerException;
}
